package org.apache.lorry.zookeeper.cluster.demo;

import lombok.extern.slf4j.Slf4j;
import org.apache.lorry.zookeeper.cluster.Client;
import org.apache.lorry.zookeeper.cluster.Task;

@Slf4j
public class ClientDemo1 {
    public static void main(String[] args) {
        try {
            Client client = new Client("localhost:2181");
            client.start();
            Task task = new Task("abc3", 30);
            client.submitTask(task);
            task.await();
        } catch (Exception e) {
            log.error(e.getMessage(), e);
        }

    }
}
